import request from '@/utils/request'

// 查询对局结果列表
export function listLiveRoomResult(query) {
  return request({
    url: '/data/liveRoomResult/list',
    method: 'get',
    params: query
  })
}

// 查询对局结果详细
export function getLiveRoomResult(liveRoomId) {
  return request({
    url: '/data/liveRoomResult/' + liveRoomId,
    method: 'get'
  })
}

// 新增对局结果
export function addLiveRoomResult(data) {
  return request({
    url: '/data/liveRoomResult',
    method: 'post',
    data: data
  })
}

// 修改对局结果
export function updateLiveRoomResult(data) {
  return request({
    url: '/data/liveRoomResult',
    method: 'put',
    data: data
  })
}

// 删除对局结果
export function delLiveRoomResult(liveRoomId) {
  return request({
    url: '/data/liveRoomResult/' + liveRoomId,
    method: 'delete'
  })
}
